package com.zhxy.manager.service.intf;

import com.zhxy.manager.entity.Equipment;
import com.zhxy.manager.vo.PageBean;
import com.zhxy.manager.vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface EquipmentService {
    //增加
    R save(Equipment equipment);
    //查询
    List<Equipment> queryAll();
    //删除
    R del(int id);
    //修改
    R update(Equipment equipment);
    //查询 条件
    PageBean queryPageWhere(String name,int page,int limit);
    //批量删除
    R delBatch(int[] ids);
    //批量增加
    R saveBatch(MultipartFile file) throws IOException;
}
